package com.donleo.student.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.donleo.common.relation.UserTeamRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户小组关联表 Mapper 接口
 * </p>
 *
 * @author liangd
 * @since 2020-12-21
 */
public interface UserTeamRelationMapper extends BaseMapper<UserTeamRelation> {
    /**
     * 批量插入
     */
    int insertBatch(List<UserTeamRelation> utList);

    /**
     * 批量删除
     */
    int deleteByTeamCodeAndUserCodes(@Param("teamCode") String teamCode,
                                     @Param("s1") List<String> s1);

    /**
     * 根据用户编号查询
     */
    List<UserTeamRelation> selectByUserCodes(List<String> strings);

    /**
     * 根据用户编号删除
     */
    int deleteByUserCode(String userCode);
}
